package com.hzqy.web.ac.industry;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONObject;
import com.hzqy.commons.utils.PublicUtil;
import com.hzqy.service.industry.IndustryLinkServiceBean;
import com.hzqy.web.vo.industry.IndustryLinkVo;
import com.hzqy.web.vo.industry.ThirdHospitalLinkVo;


@Controller
@RequestMapping("/industry/link")
public class IndustryLinkAction {
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	@Resource
	private IndustryLinkServiceBean industryLinkServiceBean;

	@RequestMapping("/thirdHospitalLinkRequest")
	@ResponseBody
	public Object thirdHospitalLinkRequest(ThirdHospitalLinkVo thirdHospitalLinkVo) {
		Map<String,Object> contentListMap=industryLinkServiceBean.thirdHospitalLinkRequest(thirdHospitalLinkVo);
		return contentListMap;
	}
	@RequestMapping("/selectBedNo")
	@ResponseBody
	public Object selectBedNo(String serverId,String bedNo) {
		List<Map<String, String>> contentListMap=industryLinkServiceBean.selectBedNo(serverId,bedNo);
		return contentListMap;
	}
	@RequestMapping("/selectPatientInfoByServerId")
	@ResponseBody
	public Object selectPatientInfoByServerId(ThirdHospitalLinkVo thirdHospitalLinkVo) {
		List<String> contentListMap=industryLinkServiceBean.selectPatientInfoByServerId(thirdHospitalLinkVo);
		return contentListMap;
	}
}
